home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q33900
< prev
next >
Wrap
Text File
|
1988-08-12
|
1KB
|
53 lines
Q33900 Title #pragma in Include File Disables Further #pragmas
C Compiler
5.10 | 5.10
MS-DOS | OS/2
Summary:
If you use the #pragma title("text") feature in an include file, it
does not work correctly and any further #pragmas (e.g. title, page,
etc.) in the main file are ignored. The "Microsoft C Optimizing
Compiler for MS OS/2 and MS-DOS Operating Systems Version 5.1 Update"
manual does not disallow this use.
Microsoft has confirmed this to be a problem in Version 5.10 of the
C compiler. We are researching this problem and will post new
information as it becomes available.
You can work around the problem by using the #pragma feature before
the #include line.
More Information:
Compile the following file with /Fs for a source listing:
/* PRAGMA.C */
#pragma title("main program #1")
#pragma page()
#include "pragma.inc"
#pragma page()
#pragma title("main program #2")
#pragma page()
main ()
{
while (1);
}
/* PRAGMA.INC : */
/* The next two title will not appear in the source listing.
Comment out these two lines to see the difference in PRAGMA.LST */
#pragma title("include file #1")
#pragma page()
int foo (void)
{
i=j;
return (i);
}
Keywords: buglist5.10
Updated 88/08/12 07:22